package org.jeecg.modules.demo.crm.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.*;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.experimental.Accessors;

/**
 * @Description: 开票登记拆分发票--收款记录
 * @Author: jeecg-boot
 * @Date:   2025-06-30
 * @Version: V1.0
 */
@Data
@TableName("c_invoice_apply_split")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@NoArgsConstructor // 自动生成无参构造方法
@AllArgsConstructor // 自动生成全参构造方法
@ApiModel(value="c_invoice_apply_split对象", description="开票登记拆分发票--收款记录")
public class CInvoiceApplySplit implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**开票id*/
	@Excel(name = "开票id", width = 15, dictTable = "c_invoice_apply", dicText = "invoice_number", dicCode = "id")
	@Dict(dictTable = "c_invoice_apply", dicText = "invoice_number", dicCode = "id")
    @ApiModelProperty(value = "开票id")
    private String invoiceApplyId;
	/**收款记录*/
	@Excel(name = "收款记录", width = 15, dictTable = "c_payment_record", dicText = "payment_title", dicCode = "id")
	@Dict(dictTable = "c_payment_record", dicText = "payment_title", dicCode = "id")
    @ApiModelProperty(value = "收款记录")
    private String paymentRecordId;
	/**开票总金额*/
	@Excel(name = "开票总金额", width = 15)
    @ApiModelProperty(value = "开票总金额")
    private BigDecimal amount;
	/**开票拆分金额*/
	@Excel(name = "开票拆分金额", width = 15)
    @ApiModelProperty(value = "开票拆分金额")
    private BigDecimal splitAmount;
	/**项目id*/
	@Excel(name = "项目id", width = 15, dictTable = "c_project_application", dicText = "project_name", dicCode = "id")
	@Dict(dictTable = "c_project_application", dicText = "project_name", dicCode = "id")
    @ApiModelProperty(value = "项目id")
    private String projectId;
	/**子项目id*/
	@Excel(name = "子项目id", width = 15, dictTable = "c_sub_project", dicText = "sub_project_name", dicCode = "id")
	@Dict(dictTable = "c_sub_project", dicText = "sub_project_name", dicCode = "id")
    @ApiModelProperty(value = "子项目id")
    private String subProjectId;
	/**总包id*/
	@Excel(name = "总包id", width = 15, dictTable = "c_company_info", dicText = "company_name", dicCode = "id")
	@Dict(dictTable = "c_company_info", dicText = "company_name", dicCode = "id")
    @ApiModelProperty(value = "总包id")
    private String companyInfoId;
}
